package com.example.demo01.Entity.webEntity;

import org.springframework.stereotype.Component;

import java.sql.Date;

@Component
public class HealthInfoRecord {
    //attributes
    private Integer id;//id编号
    private String idNumber;//身份证号
    private Integer diastolicPressure;//舒张压
    private Integer systolicPressure;//收缩压
    private Integer pluseVal;//脉搏频率
    private Float temperatureVal;//体温
    private  Integer breathingRate;//呼吸频率
    private Date loadDate;//记录时间
    //construstors
    public HealthInfoRecord() { super(); }
    public HealthInfoRecord(String idNumber, Integer diastolicPressure, Integer systolicPressure, Integer pluseVal, Float temperatureVal, Integer breathingRate, Date loadDate) {
        this.idNumber = idNumber;
        this.diastolicPressure = diastolicPressure;
        this.systolicPressure = systolicPressure;
        this.pluseVal = pluseVal;
        this.temperatureVal = temperatureVal;
        this.breathingRate = breathingRate;
        this.loadDate = loadDate;
    }
    public HealthInfoRecord(Integer id, String idNumber, Integer diastolicPressure, Integer systolicPressure, Integer pluseVal, Float temperatureVal, Integer breathingRate, Date loadDate) {
        this.id = id;
        this.idNumber = idNumber;
        this.diastolicPressure = diastolicPressure;
        this.systolicPressure = systolicPressure;
        this.pluseVal = pluseVal;
        this.temperatureVal = temperatureVal;
        this.breathingRate = breathingRate;
        this.loadDate = loadDate;
    }

    //toString
    @Override
    public String toString() {
        return "HealthInfoRecord{" +
                "id=" + id +
                ", idNumber='" + idNumber + '\'' +
                ", diastolicPressure=" + diastolicPressure +
                ", systolicPressure=" + systolicPressure +
                ", pluseVal=" + pluseVal +
                ", temperatureVal=" + temperatureVal +
                ", breathingRate=" + breathingRate +
                ", loadDate=" + loadDate +
                '}';
    }

    //setter
    public void setId(Integer id) { this.id = id; }
    public void setIdNumber(String idNumber) { this.idNumber = idNumber; }
    public void setDiastolicPressure(Integer diastolicPressure) { this.diastolicPressure = diastolicPressure; }
    public void setSystolicPressure(Integer systolicPressure) { this.systolicPressure = systolicPressure; }
    public void setPluseVal(Integer pluseVal) { this.pluseVal = pluseVal; }
    public void setTemperatureVal(Float temperatureVal) { this.temperatureVal = temperatureVal; }
    public void setBreathingRate(Integer breathingRate) { this.breathingRate = breathingRate; }
    public void setLoadDate(Date loadDate) { this.loadDate = loadDate; }
    //getter
    public Integer getId() { return id; }
    public String getIdNumber() { return idNumber; }
    public Integer getDiastolicPressure() { return diastolicPressure; }
    public Integer getSystolicPressure() { return systolicPressure; }
    public Integer getPluseVal() { return pluseVal; }
    public Float getTemperatureVal() { return temperatureVal; }
    public Integer getBreathingRate() { return breathingRate; }
    public Date getLoadDate() { return loadDate; }
}
